package com.vogue.supplymall.shop.domain.mapper;

import com.vogue.ssm.database.util.SqlLangDriver;
import com.vogue.supplymall.shop.domain.model.ProductAttrplanDetail;

import java.util.List;

import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * The interface ProductAttrplanDetail mapper.
 *
 * @Aouthor: gzl
 * @Date: Create in 2017-12-12
 */
@Mapper
public interface ProductAttrplanDetailMapper extends BaseMapper<ProductAttrplanDetail, Long> {
    /**
     * 根据attrvalueid得到attrplanid
     */
	@Select("select attrplanid from product_attrplan_detail where attrvalueid=#{attrvalueId}")
	@Lang(SqlLangDriver.class)
	public List<Long> findAttrplanIdByAttrvalueId(Long attrvalueId);
}
